using UnityEngine;

public class CoachMessageBoard : MonoBehaviour
{
	public UILabel label;

	public Vector3 offset;

	private bool initialized;

	private void Init()
	{
		if (!initialized)
		{
			initialized = true;
			Hide();
		}
	}

	public void Hide()
	{
		base.gameObject.SetActive(false);
	}

	public void Show(string text, Vector3 position)
	{
		Init();
		base.gameObject.SetActive(true);
		label.text = GGFormat.FormatText(text);
		base.transform.localPosition = position + offset;
	}
}
